package com.dhcc.sdc.base.service;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.core.framework.base.service.IBaseService;
import com.dhcc.sdc.base.entity.ContraindicationItemRuleEntity;

import java.util.List;
import java.util.Map;

/**
 * 禁忌症条目匹配规则表数据服务层接口
 *
 * @ClassName: IContraindicationItemRuleService
 * @Description: TODO
 * @author zhangjin
 * @date 2022-09-07 09:44:17
 */
public interface IContraindicationItemRuleService  extends IBaseService<ContraindicationItemRuleEntity> {

    List<ContraindicationItemRuleEntity> page(Page<ContraindicationItemRuleEntity> page,Map<String, Object> map);
    List<ContraindicationItemRuleEntity> list(Map<String, Object> map);

    List<ContraindicationItemRuleEntity> selectByExpression(Map<String, Object> params);

    JSONArray getSourceFieldMap(Long entityId, Long linkStandSubId);
    JSONArray getDicMapBySourceId(Long entityId);

    List<String> selectCode(String expCode);
}
